package com.my.blog.website.service;

import com.github.pagehelper.PageInfo;
import com.my.blog.website.modal.Vo.QuestionVo;

/**
 * @Description 问答服务
 * @ClassName IQuestionService
 * @Author gyh
 * @date 2020.08.03 14:58
 */
public interface IQuestionService {


    /**
     * @MethodName: getQuestions
     * @Description: 分页查询问答列表
     * @Param: [p, limit]
     * @Return: com.github.pagehelper.PageInfo<com.my.blog.website.modal.Vo.QuestionVo>
     * @Author: gyh
     * @Date: 2020-08-03 15:14
     **/
    PageInfo<QuestionVo> getQuestions(int p, int limit);

    /**
     * @Author: gyh
     * @Description: 问答保存
     * @DateTime: 2020/9/20 23:51
     * @Params: [question]
     * @Return void
     */
    void save(QuestionVo question);

    /**
     * @Author: gyh
     * @Description: 获取问题信息
     * @DateTime: 2020/9/21 23:55
     * @Params: [qid]
     * @Return com.my.blog.website.modal.Vo.QuestionVo
     */
    QuestionVo getQuestionByQid(String qid);

    void update(QuestionVo question);
}
